﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="ListaAtendimentosPendentes.aspx.cs" Inherits="Atendex.Web.ListaAtendimentosPendentes" %>
<%@ Register src="CalendarCombo.ascx" tagname="CalendarCombo" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Lista de Atendimentos Pendentes</h3>
    <p>
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="false"></asp:Label>
    </p>
    <div id="page-form">
    <asp:Panel runat="server" ID="pnlCadastro">
        <fieldset class="form-data">
            <legend>Busca</legend>
            
            <p style="margin-bottom: 10px;">
                <asp:Label ID="lblResponsavel" AssociatedControlID="txtResponsavel" runat="server" Text="Responsável Abertura" />
                <asp:TextBox runat="server" ID="txtResponsavel"></asp:TextBox>
            </p>
            <div>
            <fieldset class="no-float">
                <legend>Data de Abertura</legend>
                <p>
                    <uc1:CalendarCombo ID="uccDataInicioAbertura" runat="server" />&nbsp;&nbsp;&nbsp;
                    <uc1:CalendarCombo ID="uccDataFimAbertura" runat="server" />
                </p>
            </fieldset>
            </div>
            <div>
            <fieldset class="no-float">
                <legend>Data de Prazo</legend>
                <p>
                    <uc1:CalendarCombo ID="uccDataInicioPrazo" runat="server" />&nbsp;&nbsp;&nbsp;
                    <uc1:CalendarCombo ID="uccDataFimPrazo" runat="server" />
                </p>
            </fieldset>
            </div>
        </fieldset>
        <fieldset class="actions">
            <asp:Button ID="btnSubmit" runat="server" Text="Submeter" 
                onclick="btnSubmit_Click" />
            <input type="reset" value="Limpar" />
        </fieldset>

        <fieldset class="form-data">
            <legend>Resultado</legend>
            <asp:GridView ID="gvAtendimentosPendentes" runat="server" 
                AutoGenerateColumns="False" CssClass="grid-view">
                <Columns>
                    <asp:BoundField HeaderText="Nome" DataField="Atendente" />
                    <asp:BoundField HeaderText="No. Atendimento" DataField="Id" />
                    <asp:BoundField HeaderText="Abertura" DataField="DataInicio" DataFormatString="{0:D}" />
                    <asp:BoundField HeaderText="Prazo" DataField="DataFim" DataFormatString="{0:D}" />
                </Columns>
            </asp:GridView>
        </fieldset>
        </asp:Panel>
        </div>
</asp:Content>
